<template>
	<view class="content"
		style="height: 100%;"
		:style="'background: url('+ c_imgPath + 'shouye/indexBg.png'+ ') repeat-y 0 0 / 100% auto;'"
		>

		<!-- 地址 -->
		<view class="address_z">
			<image :src="c_imgPath+'mine/address.png'"></image>
			<view class="address_z_r">
				<view>
					<text style="font-size: 28rpx;font-weight: 600;">{{list.name}}</text>
					<text style="color: #999999;margin-left: 10rpx;">{{list.mobile}}</text>
				</view>
				<view style="margin-top: 20rpx;">{{list.address}}</view>
			</view>
		</view>
		<!-- 赏品 -->
		<view class="xuyuan">
			<view class="xuyuan_con">
				<view class="xuyuan_item" v-for="(v,i) in goods" :key='i'>
					<view class="list_img">
						<image :src="v.goodslist_imgurl"></image>
						<view>{{v.shang_name}} ×{{v.prize_num}}</view>
					</view>
					<view class="xuyuan_item_2 flex_center">
						<view class="hang1">{{v.goodslist_title}}</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 时间 -->
		<view class="dingdan">
			<view>提交时间：{{list.addtime}}</view>
			<view style="border: none;">订单号：{{list.send_num}}</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				z_imgPath: this.$z_img,
				c_imgPath:'https://qt.yhemall.com/',
				cc_imgPath:'/static/',
				goods: [],
				list: {}
			}
		},
		onLoad(e) {
			this.getData(e.id)
		},
		methods: {

			getData(e) {
				// 模拟接口
				let that = this;
				that.req({
					url: 'warehouse_send_record_detail',
					Loading: true,
					data: {
						id: e
					},
					success(res) {
						if (res.status == 1) {
							that.goods = res.data.goods;
							that.list = res.data
						}

					}
				})
			}
		}
	}
</script>

<style>
	page{
		height: 100%;
	}
	.list_img>view {
		position: absolute;
		bottom: 0;
		left: 0;
		background: #B07CDD;
		color: #FFFFFF;
		font-size: 24rpx;
		text-align: left;
		padding: 4rpx 10rpx;
		box-sizing: border-box;
		border-radius: 0 8rpx 0 0;
	}

	.list_img>image {
		width: 168rpx;
		height: 168rpx;
		border-radius: 10rpx 10rpx 0 0;
		margin: 1rpx auto;

	}

	.list_img {
		border-radius: 10rpx;
		box-sizing: border-box;
		width: 170rpx;
		height: 170rpx;
		position: relative;
	}

	.dingdan>view {
		border-bottom: 1px solid rgba(255, 255, 255, 0.4);
		padding: 20rpx 0;
	}

	.dingdan {
		width: 690rpx;
		margin: 20rpx auto;
		padding: 0 30rpx;
		box-sizing: border-box;
		font-size: 28rpx;
		border: 1px solid #FFFFFF;
		font-size: 24rpx;
		color: #FFFFFF;
	}

	.address_z_r {
		width: 584rpx;
		margin-left: 30rpx;
	}

	.address_z>image {
		width: 60rpx;
		height: 60rpx;
	}

	.address_z {
		width: 690rpx;
		margin: 20rpx auto;
		padding: 30rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		border: 1px solid #FFFFFF;
		font-size: 24rpx;
		color: #FFFFFF;
	}

	.xuyuan_item_2 {
		color: #FFFFFF;
		font-size: 24rpx;
		width: 100%;
		margin-top: 10rpx;
	}

	.xuyuan_item>image {
		width: 170rpx;
		height: 170rpx;
		border-radius: 10rpx 10rpx 0 0;
	}

	.xuyuan_item {
		width: 170rpx !important;
		min-width: 170rpx;
		height: 242rpx;
		border-radius: 10rpx;
		margin-right: 20rpx;
		flex-shrink: 0;
		text-align: center;
	}

	.xuyuan_con {
		display: flex;
		margin: 14rpx auto 0;
		width: 630rpx;
		box-sizing: border-box;
		overflow-x: scroll;
	}

	.xuyuan {
		width: 690rpx;
		border: 1px solid #FFFFFF;
		font-size: 24rpx;
		color: #FFFFFF;
		margin: 24rpx auto 0;
		padding-top: 24rpx;
		box-sizing: border-box;
	}

	.content {
		width: 100vw;
		min-height: 100vh;
		padding-top: 1rpx;
		box-sizing: border-box;
	}
</style>
